import { createApp } from "vue";
import App from "./App.vue";
import "@/assets/styles/normalize.css";
// 引入element ui
import ElementPlus from "element-plus";
import "element-plus/dist/index.css";
import zhCn from "element-plus/es/locale/lang/zh-cn";
import router from "@/router/index.js";
import { computeVw, computeVh } from "@/utils/computePx.js";

const app = createApp(App);
//定义全局方法
app.config.globalProperties.$computeVw = (px) => computeVw(px);
app.config.globalProperties.$computeVh = (px) => computeVh(px);

document.title = "负荷转供策略";

app.use(ElementPlus, {
  locale: zhCn,
});
app.use(router);
app.mount("#app");
